import { _decorator, Component, Label, Node } from "cc";
const { ccclass, property } = _decorator;

@ccclass("LifeCountUI")
export class LifeCountUI extends Component {
  @property(Label)
  public lifeCountLabel: Label;

  start() {}

  update(deltaTime: number) {}

  onLifeCountChange(lifeCount: number) {
    this.lifeCountLabel.string = lifeCount.toString();
  }
}
